form 表单元素如果使用了[(ngModel)]=”name”,
- 添加
name="name"
- 添加配置项
[ngModelOptions]="{standalone: true}"
1 | ERROR Error: If ngModel is used within a form tag, either the name attribute must be set or the form |
form 表单元素如果使用了[(ngModel)]=”name”,
name="name"
[ngModelOptions]="{standalone: true}"
1 | ERROR Error: If ngModel is used within a form tag, either the name attribute must be set or the form |
微信打赏
支付宝打赏